package com.sharing.mapper;

import com.sharing.domain.UserLike;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author MingTian
 * @version 1.0
 * @description TODO
 * @date 2023/4/3 21:23
 */
@Mapper
public interface UserLikeMapper {

    List<Integer> selectLikeUsersByUserId(Integer userId, Integer page, Integer size);

    List<Integer> selectUsersByLike(Integer userId, Integer page, Integer size);

    Integer selectLikeUsersNumByUserId(Integer userId);

    Integer selectUsersNumByLike(Integer userId);

    Integer selectLikeIsHaving(UserLike userLike);

    Integer insertLikeUser(UserLike userLike);

    Integer deleteLikeUser(UserLike userLike);
}